import React from 'react'
import RoomInfo from '@/components/room/info';
import RoomConfirm from '@/components/room/confirm';
import RoomPay from '@/components/room/pay';
const list = [
  {
    path: 'info',
    component: RoomInfo,
  },
  {
    path: 'confirm',
    component: RoomConfirm,
    auth: true,
  },
  {
    path: 'pay',
    component: RoomPay,
    auth: true,
  }
];

//默认父组件 可以自己定义
const layout = () => {
  return (<><React.Router.Outlet /></>)
}

const RouterList = [
  {
    path: '/room',
    component: layout,
    children: list,
  }
]

export default RouterList

